import math

# 定义函数,没有参数和返回值的函数
def my_func1():
    """
    函数体现了封装性
    """
    my_input =input("内置函数：")
    print("打印字符串的长度：",len(my_input))
    print("math调用sin:",math.sin(math.pi/2))

def my_avg(num1,num2):
    avg = (num1+num2)/2
    return avg

# 调用函数
# v1 = my_func1()
# print(f"{v1=}")

v2 = my_avg(19,22)
print(f"{v2=}")

v3 = my_avg(23,11)
print(f"{v3=}")

v4 = my_avg(2,111)
print(f"{v4=}")